import axios from 'axios'

const isDev = process.env.NODE_ENV === 'development'

const request = axios.create({
  baseURL: isDev ? '' : 'http://www.daxun.com/api',
})

export default request
